import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'

// import Qr from '@/components/Qr'

import mywork from '@/components/work/mywork'

import addwork from '@/components/work/add'

import myfile from '@/components/file/myfile'

import write from '@/components/write'

import refresh from '@/components/refresh'

// import together from '@/components/together/together'

import myMessage from '@/components/message/myMessage'

import ps from '@/components/tool/ps'
Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      component: () => import(`@/components/login`)
    }, {
      path: '/main',
      component: () => import(`@/components/main`)
    }, {
      path: '/rl',
      component: () => import(`@/components/rl`)
    // }, {
    //   path: '/Qr',
    //   component: Qr
    }, {
      path: '/work/paper',
      component: () => import(`@/components/work/paper`)
    }, {
      path: '/work/',
      component: mywork
    }, {
      path: '/work/add',
      component: addwork
    },
    {
      path: "/file/myfile",
      component: myfile
    }, {
      path: "/write",
      component: write
    }, {
      path: "/refresh",
      component: refresh
    // },{
    //   path: "/together",
    //   component: together
    },{
      path: "/message",
      component: myMessage
    },{
      path: "/ps",
      component: ps
    }
  ]
})
